import "./App.css";
import { RouterProvider } from "react-router-dom";
import { routes } from "./router";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import { useEffect } from "react";

function App() {
  const theme = {
    cssVar: true,
    hashed: false,
    token: {
      colorPrimary: "#12b36d",
      colorInfo: "#12b36d",
      colorLink: "#12b36d",
      paddingLG: 16
    }
  };

  return (
    <ConfigProvider theme={theme} locale={zhCN}>
      <RouterProvider router={routes} />
    </ConfigProvider>
  );
}

export default App;
